package com.crazypos.pojo.vo;

import com.crazypos.pojo.MenuEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleMenuVO {

    private Integer id;

    private String name;

    private Integer status;

    private String url;

    private Integer moduleId;

    private String moduleName;

    private String slug;

    public RoleMenuVO(MenuEntity menuEntity) {
        this.id = menuEntity.getId();
        this.name = menuEntity.getName();
        this.status = menuEntity.getStatus();
        this.url = menuEntity.getUrl();
        this.moduleId = menuEntity.getModuleId();
        this.moduleName = menuEntity.getModuleName();
        this.slug = menuEntity.getSlug();
    }
}
